<template>
  <div>
    <!--  头部  -->
    <header>
      <nav-top></nav-top>
    </header>
    <section>
      <!--   主体界面   -->
      <div class="main">
        <!--    文章界面    -->
        <div class="content">
          <div class="write-box">
            <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
              <el-tab-pane class="topic-box" label="为你推荐" name="first">
                <p class="title">添加你擅长的话题，为你推荐可能感兴趣的问题</p>
                <el-input
                  class="edit-topic"
                  size="medium"
                  v-model="topic_title"
                  placeholder="添加擅长话题"
                ></el-input>
              </el-tab-pane>
              <el-tab-pane class="station-hot" label="全站热门" name="second">
                <div>
                  <div>
                    <p>一千行以下有哪些给力代码？</p>
                    <div>
                      9个回答 · 910人关注
                    </div>
                  </div>
                  <el-tooltip
                    class="item"
                    effect="dark"
                    content="不感兴趣"
                    placement="bottom"
                  >
                    <i class="el-icon-close"></i>
                  </el-tooltip>
                </div>
              </el-tab-pane>
              <el-tab-pane label="邀请回答(68)" name="third"></el-tab-pane>
            </el-tabs>
          </div>
        </div>
        <div class="content-right">
          <!--     其他功能     -->
          <div class="user-mould">
            <router-link to="./answer">
              <div>
                <img
                  src="../assets/images/write-answer.png"
                  width="40"
                  height="40"
                  alt=""
                />
                <span>写回答</span>
              </div>
            </router-link>
            <router-link to="./writing">
              <div>
                <img
                  src="../assets/images/write-essay.png"
                  width="39"
                  height="40"
                  alt=""
                />
                <span>写文章</span>
              </div>
            </router-link>
            <router-link to="./invited">
              <div>
                <img
                  src="../assets/images/invitation-answer.png"
                  width="40"
                  height="34"
                  alt=""
                />
                <span>邀我答</span>
              </div>
            </router-link>
            <router-link to="./later">
              <div>
                <img
                  src="../assets/images/process-later.png"
                  width="38"
                  height="34"
                  alt=""
                />
                <span>稍后答</span>
              </div>
            </router-link>
            <router-link to="">
              <div>
                <img
                  src="../assets/images/draft-box.png"
                  width="40"
                  height="34"
                  alt=""
                />
                <span>草稿箱</span>
              </div>
            </router-link>
            <router-link to="">
              <div>
                <img
                  src="../assets/images/collect-question.png"
                  width="39"
                  height="34"
                  alt=""
                />
                <span>收藏夹</span>
              </div>
            </router-link>
            <router-link to="">
              <div>
                <img
                  src="../assets/images/tip-off.png"
                  width="45"
                  height="40"
                  alt=""
                />
                <span>举报中心</span>
              </div>
            </router-link>
            <router-link to="">
              <div>
                <img
                  src="../assets/images/list-rule.png"
                  width="38"
                  height="40"
                  alt=""
                />
                <span>榜单规则</span>
              </div>
            </router-link>
          </div>
          <p>
            Copyright©2019 Lawpro<br />
            沪ICP备19012546号
          </p>
        </div>
      </div>
    </section>
  </div>
</template>

<script>
export default {
  name: "forget",
  data() {
    return {
      activeName: "first",
      topic_title: ""
    };
  },
  methods: {
    handleClick() {
      if (this.activeName === "third") {
        this.$router.push({
          path: "/invited"
        });
      }
    }
  }
};
</script>

<style scoped lang="less">
/*头部*/
header {
  z-index: 9999;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 0;
  background-color: #fff;
  box-shadow: 0 2px 2px 0 rgba(237, 237, 237, 0.4);
}
/*主体*/
section {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  padding-top: 15px;
  margin-top: 55px;
  background-color: #f6f6f6;

  .main {
    display: flex;
    justify-content: space-between;
    width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;

    .content {
      width: 69%;
      height: 100%;
      border-radius: 2px;
      box-sizing: border-box;
      .write-box {
        min-height: 80vh;
        height: 100%;
        padding: 20px;
        background-color: #fff;
        /deep/.is-active {
          color: #666 !important;
        }
        /deep/.el-tabs__item,
        .is-top {
          color: #465a33;
        }
        .topic-box {
          & > p {
            margin: 30px 0;
            font-size: 15px;
            color: #666;
          }
          /deep/.edit-topic {
            width: 200px;
          }
        }
        .station-hot {
          & > div {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #ececec;

            & > div {
              padding: 20px 0;

              p {
                margin-bottom: 15px;
                font-size: 15px;
                color: #465a33;
              }

              div {
                font-size: 14px;
                color: #888;
              }
            }

            i {
              color: #999;
              cursor: pointer;

              &:hover {
                color: #222;
              }
            }
          }
        }
      }
    }
    .content-right {
      width: 30%;
      .user-mould {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
        text-align: center;
        border-radius: 2px;
        background-color: #fff;
        box-shadow: 0 1px 1px 0 rgba(237, 237, 237, 0.4);
        a {
          width: 135px;
          color: #000;
          div {
            display: flex;
            flex-direction: column;
            margin: 10px 0;
            font-size: 14px;
            cursor: pointer;
            img {
              margin: 10px auto;
            }
          }
        }
      }
      & > p {
        margin-top: 10px;
        line-height: 30px;
        font-size: 15px;
        color: #7d8178;
      }
    }
  }
}
</style>
